<?php
	$path = $_SERVER["PHP_SELF"];
	$arr = explode("/", $path);
//	$root = "/" . $arr[1];
	/*配置服务器路径跟本地通用*/
	$root = $_SERVER['HTTP_HOST'] == 'localhost' ? '/' . $arr[1] : '';
	$imgPath = $root . "/public/uploads/";
	$imgPathThumb = $root . "/public/uploads/thumb_";
	$uploadPath = "D:\phpStudy\PHPTutorial\WWW" . $imgPath;
	$uploadPathThumb = "D:\phpStudy\PHPTutorial\WWW" . $imgPathThumb;
?>